package com.zhentao.day03.pm;

public class User {

  String userName ; // 用户名
  String password ; // 密码
  String role ;   // 角色

  public User (){} // 无参构造器

  public User(String userName) {
    this.userName = userName ;
  }
  public User(String userName , String password) {
    this.userName = userName ;
    this.password = password ;
  }
  public User(String userName , String password , String role) {
    this.userName = userName ;
    this.password = password ;
    this.role = role ;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    // 本身对象的 userName 全局变量 被 局部变量 的参数 userName 赋值。
    this.userName = userName;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getRole() {
    return role;
  }

  public void setRole(String role) {
    this.role = role;
  }
}
